<?php
namespace app\controller;

use app\BaseController;
use think\facade\View;
use app\model\Prize;
use app\model\AgeOdds;
use app\model\Odds;

class Admin extends BaseController
{
    public function index(Prize $prize, AgeOdds $ageOdds, Odds $oddsModel)
    {
        View::assign([
            'list' => $prize->all(),
            'sex_odds' => $oddsModel->all(),
            'age_odds' => $ageOdds->all(),
        ]);

        return View::fetch();
    }

    
}
